﻿using System;

namespace Peter.Logic.EventArguments
{
   /// <summary>
   /// Event handler for arguments.
   /// </summary>
   /// <param name="e">Argument events.</param>
   public delegate void ArgumentEventHandler (object sender, ArgumentEventArgs e);

   /// <summary>
   /// Represents event arguments for application arugments.
   /// </summary>
   public class ArgumentEventArgs : EventArgs
   {
      /// <summary>
      /// Initializes a new argument event args.
      /// </summary>
      /// <param name="arg">Argument that caused the event.</param>
      public ArgumentEventArgs (string arg)
      {
         this.Argument = arg;
      }

      /// <summary>
      /// Gets the Argument that caused the event.
      /// </summary>
      public string Argument { get; private set; }
   }
}
